#include<cstdio>
#include<cstring>

int main(){
	char s[1005];
	int len;
	gets(s);
	len = strlen(s);
	
	if((s[len-1]-'0')%2 == 0){
		printf("YES\n");
	}else{
		printf("NO\n");
	}
	return 0;
} 
